var href = location.href
var ifsuc = href.substr(href.lastIndexOf('?') + 1)
if(ifsuc === 'registersuc=true') {
    alert('注册成功')
} else if(ifsuc === 'loginsuc=false') {
    alert('登录失败')
}